/**
 * Created by webrx on 2024/5/7.
 */
import {createI18n} from 'vue-i18n'

const messages = {
    //英文
    en: {
        message: {
            hello: 'hello',
            submit: 'Submit',
            address: 'HeNan zhengzhou',
        }
    },
    //简体中文
    zh: {
        message: {
            hello: '哈罗',
            submit: '提交',
            address: '河南郑州',
        }
    },
    //简体中文
    zhTw: {
        message: {
            hello: '哈羅',
            submit: '提交',
            address: '河南鄭州',
        }
    },
    //日文
    ja: {
        message: {
            hello: 'ハロー',
            submit: '送信',
            address: '河南省鄭州',
        }
    }

}

const i18n = createI18n({
    locale: 'zh', // set default locale
    fallbackLocale: 'en', // set fallback locale 默认语言
    messages, // set locale messages
})

export default i18n
